package top.zywork.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zywork.dao.UserSearchHistoryDAO;
import top.zywork.dos.UserSearchHistoryDO;
import top.zywork.dto.UserSearchHistoryDTO;
import top.zywork.service.AbstractBaseService;
import top.zywork.service.UserSearchHistoryService;

import javax.annotation.PostConstruct;

/**
 * UserSearchHistoryServiceImpl服务接口实现类<br/>
 *
 * 创建于2019-10-18<br/>
 *
 * @author http://zywork.top 王振宇
 * @version 1.0
 */
@Service(value = "userSearchHistoryService")
public class UserSearchHistoryServiceImpl extends AbstractBaseService implements UserSearchHistoryService {

    private UserSearchHistoryDAO userSearchHistoryDAO;

    @Autowired
    public void setUserSearchHistoryDAO(UserSearchHistoryDAO userSearchHistoryDAO) {
        super.setBaseDAO(userSearchHistoryDAO);
        this.userSearchHistoryDAO = userSearchHistoryDAO;
    }

    @PostConstruct
    public void init() {
        super.init(UserSearchHistoryDO.class, UserSearchHistoryDTO.class);
    }
}
